package com.clarence.dada.modular.system.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clarence.dada.modular.system.user.entity.SysUserEntity;
import com.clarence.dada.modular.system.user.entity.req.SysUserReq;
import com.clarence.dada.modular.system.user.entity.resp.SysUserResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统用户mapper接口
 *
 * @author GD
 * @since 2020/11/6 14:50
 */
public interface SysUserMapper extends BaseMapper<SysUserEntity> {

    /**
     * 查询用户列表
     *
     * @param page           分页参数
     * @param sysUserReq 查询条件信息
     * @author GD
     * @since  2020/11/21 15:16
     */
    Page<SysUserResp> findUserPage(@Param("page") Page<SysUserEntity> page, @Param("sysUserVo") SysUserReq sysUserReq);

    /**
     * 查询用户列表
     *
     * @param sysUserReq 查询条件信息
     * @author liuhanqing
     * @since 2021/1/15 11:04
     */
    List<SysUserResp> findUserList(@Param("sysUserVo") SysUserReq sysUserReq);

}
